package cn.zlp.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zlp
 * @since 2022-01-08
 */
@TableName("t_course_collect")
public class CourseCollect extends Model<CourseCollect> {

private static final long serialVersionUID=1L;

                        @TableId(value = "id", type = IdType.AUTO)
                            private Long id;
    @TableField("course_id")
                private Long courseId;
    @TableField("course_name")
                private String courseName;
    @TableField("user_id")
                private Long userId;
                private String username;
    @TableField("collect_time")
                private Date collectTime;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public Long getCourseId(){
            return courseId;
            }

        public void setCourseId(Long courseId) {
            this.courseId = courseId;
            }

    public String getCourseName(){
            return courseName;
            }

        public void setCourseName(String courseName) {
            this.courseName = courseName;
            }

    public Long getUserId(){
            return userId;
            }

        public void setUserId(Long userId) {
            this.userId = userId;
            }

    public String getUsername(){
            return username;
            }

        public void setUsername(String username) {
            this.username = username;
            }

    public Date getCollectTime(){
            return collectTime;
            }

        public void setCollectTime(Date collectTime) {
            this.collectTime = collectTime;
            }

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "CourseCollect{" +
                ", id=" + id +
                ", courseId=" + courseId +
                ", courseName=" + courseName +
                ", userId=" + userId +
                ", username=" + username +
                ", collectTime=" + collectTime +
        "}";
        }
        }
